-- GENERATED SPELL FOR [Doomforge Craftsman] --


function spell0_8897(pUnit, Event) --@Bomb,n/a--
pUnit:FullCastSpellOnTarget(9143,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8897', 2000, 1)
end

function spell1_8897(pUnit, Event) --@Throw Wrench,n/a--
pUnit:FullCastSpellOnTarget(15619,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8897', 618, 1)
end

function Sorts_8897(pUnit, Event)
local choix_sorts_8897 = math.random(0, 1)
if choix_sorts_8897 == 0 then
pUnit:RegisterEvent('spell0_8897', 1, 1)
end
if choix_sorts_8897 == 1 then
pUnit:RegisterEvent('spell1_8897', 1, 1)
end
end

function mob8897_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8897', math.random(1500, 3000), 1)
end

function mob8897_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8897_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8897_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8897, 1, 'mob8897_Action')
RegisterUnitEvent(8897, 2, 'mob8897_Leave')
RegisterUnitEvent(8897, 3, 'mob8897_Kill')
RegisterUnitEvent(8897, 4, 'mob8897_Die')
